package Environment;

/**
 * Creates a boundary-less boundary for the environment. When moving entities
 * hit the boundary, they will simply disappear. 
 * 
 * @author Ga-Young Joung and Perry Zheng
 */

import java.awt.Dimension;
import java.util.ArrayList;

import utilities.Vector;

public class NoBoundary implements Boundary{
	
	private Environment myEnvironment;
	
	/**
	 * Creates a boundary-less boundary
	 * @param environment
	 */
	public NoBoundary(Environment environment) {
		myEnvironment = environment;
	}
	
	/**
	 * Return the new Position and new Velocity of the object when a moving
	 * entity hits the boundary
	 * @param center  the current center of the object
	 * @param velocity  the current velocity of the moving object
	 * @param sizeOfEntity  the size (radius, for instance) of the moving object
	 * @return - The new position and velocity of the moving object after the 
	 * moving entity hits the boundary. 
	 */
	public ArrayList<Vector> getNewPositionAndVelocity(Vector center, Vector velocity, Dimension sizeOfEntity) {
		ArrayList<Vector> list = new ArrayList<Vector>();
		list.add(velocity);
		list.add(center.add(velocity));
		return list;
	}
}
